﻿using Daq.ViewModels.DeviceSettingsViewModels;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Daq.Views.DeviceSettingsViews
{
    /// <summary>
    /// MeasurementView.xaml 的交互逻辑
    /// </summary>
    public partial class MeasurementView : UserControl
    {
        public MeasurementView()
        {
            InitializeComponent();
            DataContext = App.Current.Services.GetService<MeasurementViewModel>();
        }

        private void btnDone_Click(object sender, RoutedEventArgs e)
        {
            var mainWindow = App.Current.Services.GetService<MainWindow>();
            if(mainWindow != null)
            {
                mainWindow.SwitchTab("测量");
            }
        }
    }
}
